<template>
    <el-table :data="list" size="mini">
        <el-table-column label="学习路径（岗位角色/学习计划/专题）" prop="name"></el-table-column>
            <el-table-column label="封面">
                <template slot-scope="{row}">
                    <img :src="row.img" class="logo w-8" v-if="row.img"/>
                </template>
            </el-table-column>
        <el-table-column label="操作">
            <template slot-scope="{$index}">
                <el-button
                    type="text"
                    @click="$emit('delete', $index)"
                    class="red-color">
                    {{ "移除" }}
                </el-button>
            </template>
        </el-table-column>
    </el-table>
</template>

<script>

export default {
    props: ['list'],
    data() {
        return {};
    },
};
</script>
